package com.IntelligentCommunity.es.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;


/**
 * @author 美国五星上将麦克阿瑟
 */
@ApiModel(description = "车辆数据记录模型")
public class CarDataRecords {

    @ApiModelProperty(value = "记录的ID")
    private Long id;

    @ApiModelProperty(value = "图片URL")
    private String image;

    @ApiModelProperty(value = "车牌号码")
    private String licensePlate;

    @ApiModelProperty(value = "进出状态")
    private String inOut;

    @ApiModelProperty(value = "进出事件的时间戳")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date inOutTime;

    @ApiModelProperty(value = "闸口名称")
    private String gate;

    @ApiModelProperty(value = "大图URL")
    private String bigImage;

    @ApiModelProperty(value = "抓拍时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date captureTime;

    @ApiModelProperty(value = "抓拍区域")
    private String captureArea;

}
